$filePath = "a.txt"
if ( Test-Path -Path $filePath ) {
    Write-Host "aa"
}
else {
    Write-Host "bb"
}